package com.trippin.server;

public enum AttractionType {
	HIKE("hike"),
	EXTREME_ACTIVITY("Extreme Activity"),
	AMUSEMNET_PARK("Amusement Park"),
	SIGHTSEEING("Sightseeing"),
	CRUISE("Cruise"),
	TOUR("Tour"),
	CONCERT("Concert"),
	FARE("Fare"),
	RELAXATIONS("Relaxations"),
	PILGRIMAGE_RELIGIOUS("Pilgrimage/Religious");

	private final String name;

	private AttractionType(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public static AttractionType getAttractionTypeByName(String type) {
		if(type.equalsIgnoreCase(HIKE.getName()))
			return HIKE;
		else if(type.equalsIgnoreCase(EXTREME_ACTIVITY.getName()))
			return EXTREME_ACTIVITY;
		else if(type.equalsIgnoreCase(AMUSEMNET_PARK.getName()))
			return AMUSEMNET_PARK;
		else if(type.equalsIgnoreCase(SIGHTSEEING.getName()))
			return SIGHTSEEING;
		else if(type.equalsIgnoreCase(CRUISE.getName()))
			return CRUISE;
		else if(type.equalsIgnoreCase(TOUR.getName()))
			return TOUR;
		else if(type.equalsIgnoreCase(CONCERT.getName()))
			return CONCERT;
		else if(type.equalsIgnoreCase(FARE.getName()))
			return FARE;
		else if(type.equalsIgnoreCase(RELAXATIONS.getName()))
			return RELAXATIONS;
		else if(type.equalsIgnoreCase(PILGRIMAGE_RELIGIOUS.getName()))
			return PILGRIMAGE_RELIGIOUS;
		else 
			return null;
	}
}
